package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

@Data
@TableName("business_result")
@ApiModel("报警信息")
public class MessageResult extends BasePojo{

    @ApiModelProperty("主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "任务id")
    @TableField(value = "taskId")
    private Integer taskId;

    @ApiModelProperty(value = "摄像头id")
    @TableField(value = "cameraId")
    private Integer cameraId;

    @ApiModelProperty(value = "预置位id")
    @TableField(value = "presetId")
    private  Integer presetId;

    @ApiModelProperty(value = "预置位编号")
    @TableField(value = "presetCode")
    private  Integer presetCode;

    @ApiModelProperty(value = "区域Id")
    @TableField(value = "orgId")
    private Integer orgId;

    @ApiModelProperty("区域编号")
    @TableField(value = "orgNo")
    private String orgNo;

    @ApiModelProperty(value = "区域名称")
    @TableField(value = "orgName")
    private String orgName;

    @ApiModelProperty(value = "消息事件编码")
    @TableField(value = "msgType")
    private String msgType;

    @ApiModelProperty(value = "消息事件类型中文")
    @TableField(value = "msgTypeCn")
    private String msgTypeCn;

    @ApiModelProperty("摄像头编号")
    @TableField(value = "cameraNo")
    private String cameraNo;

    @ApiModelProperty("摄像头名称")
    @TableField(value = "cameraName")
    private String cameraName;


    @ApiModelProperty(value = "相似度")
    @TableField(value = "faceScore")
    private String faceScore;

    @ApiModelProperty(value = "事件等级 0:一般事件 1:告警事件 2：忽略事件")
    @TableField(value = "msgLevel")
    private String msgLevel;

    @ApiModelProperty(value = "处理描述")
    @TableField(value = "remark")
    private String remark;


    @ApiModelProperty(value = "通用字段")
    @TableField(value = "content")
    private String content;

    @ApiModelProperty("仪表id")
    @TableField(value = "meterId")
    private Integer meterId;


    @ApiModelProperty(value = "现场画面")
    @TableField(value = "imageUrl")
    private String imageUrl;


    @ApiModelProperty("多张报警图片")
    @TableField(value = "imageUrls")
    private String imageUrls;

    @ApiModelProperty(value = "现场视频")
    @TableField(value = "videoUrl")
    private String videoUrl;

    @ApiModelProperty(value = "现场画面时间")
    @TableField(value = "imageTime")
    private Date imageTime;

    @ApiModelProperty(value = "处理状态:unDeal未处理,deal已处理")
    @TableField(value = "dealState")
    private String dealState;

    @ApiModelProperty(value = "处理人id")
    @TableField(value = "dealUserId")
    private Integer dealUserId;

    @ApiModelProperty(value = "处理人姓名")
    @TableField(value = "dealUserName")
    private String dealUserName;

    @ApiModelProperty(value = "处理时间")
    @TableField(value = "dealTime")
    private Date dealTime;


    @ApiModelProperty(value = "处理结果")
    @TableField(value = "dealResult")
    private String dealResult;


    @ApiModelProperty(value = "检测状态")
    @TableField(value = "checkState")
    private String checkState;

    @ApiModelProperty(value = "报警标志，数据库默认为 Y报警 ，N非报警 ")
    @TableField(value = "warningSigns")
    private String warningSigns="Y";


    @ApiModelProperty(value = "画框区域坐标")
    @TableField(value = "areaFrame")
    private String  areaFrame;

    @ApiModelProperty(value = "数据来源类型:computeAI计算端任务，wisdomBox智能盒子，wisdomAIO智能一体机，wisdom智能摄像头，streamDevice，流媒体设备")
    @TableField(value = "sourceType")
    private  String sourceType;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate")
    private Date createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updateDate")
    private Date updateDate;
}
